<?php
$to = "nnnnfour@gmail.com" ;
$subject = "From Contact Us";
$nama = $_REQUEST['nama'] ;
$email = $_REQUEST['email'] ;
$phone = $_REQUEST['phone'] ;
$pesan = $_REQUEST['pesan'];
$headers = "From: $nama<$email>";
$message = "$pesan";
$sent = mail($to, $subject, $message, $headers) ;
if($sent)
{
?>
<script type='text/javascript'>
alert ('Pesan Terkirim terima kasih telah menghubungi saya');
window.location="http://notepad-blogger.blogspot.com//";
</script>
<?php
}
else
?>
<script type='text/javascript'>
alert ('Tidak terkirim ada kesalahan pengisian, silahkan ulangi...!!!');
window.location="http://notepad-blogger.blogspot.com//";
</script>
<?php
?>